<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8" />
		<meta name="viewport"content="width=device-width,initial-scale=1.0" />
		<title>博客管理</title>
		<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
		<link rel="stylesheet" type="text/css" href="css/me.css" th:href="@{/css/me.css}"/>

	</head>
	<body onload="loadINFO()">
	<nav th:replace="admin/_fragments :: menu(1)" class="ui inverted  attached segment m-padded-tb-mini m-shadow-small"  >

	</nav>
		<!--二级导航-->
		<div class="ui attached pointing menu">
			<div class="ui container">
				<div class="right menu">
					<a href="#" class="item">发布</a>
					<a href="#" class="active teal item">列表</a>
				</div>
				</div>
			
		</div>
		<div class=" m-padded-tb-big m-container-small">
				<div class="ui stackable container">
					<!--头部-->
<!--					这里使用ajax提交数据，不需要form表单-->
					<div class="ui segment form">
						<div class="inline fields">
							<div class="field">
								<input type="text" name="title" id="title_bolgs" value=""  placeholder="标题"/>
							</div>
							<div class="field">
								<div class="ui selection dropdown">
									<input type="hidden" name="type" id="type_bolgs" value="" />
									<i class="dropdown icon"></i>
									<div class="default text">分类</div>
									<div class="menu" id="type_menu">
										<div class="item" data-value="1">错误日志</div>
										<div class="item" data-value="2">开发者日记</div>
									</div>
								</div>
							</div>
							<div class="field">
								<div class="ui checkbox">
									<input type="checkbox" name="recommend" id="recommend_bolgs" value="" />
									<label for="recommend_bolgs">推荐</label>
								</div>
							</div>
							<div class="field">
								<button class="ui mini teal basic button" onclick="getSearchCondition()" >
									<i class="search icon"></i>搜索
								</button>
							</div>
						</div>
					</div>

					<!-- 分页序号--->
					<input id="paging" type="hidden" value="0">
					<table class="ui table">
						<thead>
							<tr>
								<th></th>
								<th>标题</th>
								<th>类型</th>
								<th>推荐</th>
								<th>更新时间</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody id="admin-blogs-table">
							<tr>
								<td>1</td>
								<td>伍兹</td>
								<td>永远滴神</td>
								<td>是</td>
								<td>2020-12-1 06:06</td>
								<td>
									<button class="ui mini teal basic button">编辑</button>
									<button class="ui mini red basic button">删除</button>
								</td>
							</tr>
						</tbody>
						<tfoot>
							<tr>
								<th colspan="6">

								      <a href="/admin/input" class="ui mini teal right floated basic button">新增</a>
								</th>
							</tr>
						</tfoot>
					</table>
				</div>	
				</div>
		<br />
		<br />
	<footer th:replace="admin/_fragments :: footer" class="ui inverted vertical segment m-padded-tb-massive" >

	</footer>
		<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>

		<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
		<script th:src="@{/js/adminAction.js}"></script>
		<script>
			$('.menu.toggle').click(function(){
				$('.m-item').toggleClass('m-mobile-hide');
			});
			$('.ui.dropdown').dropdown({
				on: 'hover'
			});
			$('#newBlog-container').load(/*[[@{/footer/newblog2}]]*/"/footer/newblog2");

		</script>


	</body>
</html>
